{
  "macros": {
    "policy": {
      "type": "macroDef",
      "params": [ "cluster" ],
      "result": {
        "type": "OperationSelectorRoute",
        "default_policy": "PoolRoute|%cluster%.wildcard",
        "operation_policies": {
          "delete": {
            "type": "AllSyncRoute",
            "name": "all-sync",
            "children": [
              "PoolRoute|A.wildcard",
              "PoolRoute|B.wildcard",
              "PoolRoute|C.wildcard",
              "PoolRoute|D.wildcard"
            ]
          }
        }
      }
    }
  },
  "pools": {
    "A.wildcard": {
      "keep_routing_prefix": false,
      "servers": [ "localhost:12345" ]
    },
    "B.wildcard": {
      "keep_routing_prefix": true,
      "servers": [ "localhost:12346" ]
    },
    "C.wildcard": {
      "keep_routing_prefix": true,
      "servers": [ "localhost:12347" ]
    },
    "D.wildcard": {
      "keep_routing_prefix": true,
      "servers": [ "localhost:12348" ]
    }
  },
  "routes": {
    "/a/a/": "@policy(A)",
    "/b/b/": "@policy(B)",
    "/c/c/": "@policy(C)",
    "/d/d/": "@policy(D)"
  }
}
